package com.vuej.config;

import com.vuej.entity.VueConfiguration;
import com.vuej.support.spring.VueViewResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class VueConfig {

    @Bean
    public VueConfiguration vueConfiguration(){
        return VueConfiguration.getDefault();
    }

    @Bean
    public VueViewResolver vueViewResolver(){
        VueViewResolver resolver = new VueViewResolver();
        resolver.setPrefix("/templates/");
        resolver.setSuffix(".vue");
        return resolver;
    }
}
